<?php
if(!defined("ADMREAD")) exit();
global $sess,$lang,$ADMIN_PERM_ARRAY,$ADMIN_ID,$CHECK_ADMIN;
$block = array();
if (in_array('user',$ADMIN_PERM_ARRAY) || in_array($ADMIN_ID,$CHECK_ADMIN['admid'])) {
    $block['id'] = 'user';
    $block['title'] = $lang['menu_user'];
    $block['link'] = array('user.php?dn=index&ops='.$sess['hash'] => $lang['all_set'],
    'user.php?dn=list&ops='.$sess['hash'] => $lang['user_list'],
    'user.php?dn=field&ops='.$sess['hash'] => $lang['addit_fields'],
    'user.php?dn=fieldadd&ops='.$sess['hash'] => $lang['add_field']);
    if ($conf['groupact'] == 'yes') {
        $block['links'] = array('user.group.php?dn=group&ops='.$sess['hash'] => $lang['all_groups']);
        $block['link'] = @array_merge($block['link'],$block['links']);
    }
}
?>